﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace TurtleLib.Simulation
{
  public class AdvancedMonitorUx : AdvancedScreen, ISubscriber<ComputerCraft.AdvancedMonitor>
  {
    public AdvancedMonitorUx(DragablePanel parent)
      : base(parent)
    {
      _parent.BackColor = Color.Gold;
    }

    public void SubscribeTo(ComputerCraft.AdvancedMonitor host)
    {
      SetTitle(host.GetType().Name);

      var size = host.getSize();
      SetOutputSize(size.Item1, size.Item2);

      base.SubscribeTo(host);
    }
  }
}
